@inherits BaseComponent
@if ( !HasCustomRegistration )
{
    <optgroup class="@ClassNames" style="@StyleNames" label="@Label" @attributes="@Attributes">
        @ChildContent
    </optgroup>
}
else
{
    @RenderCustomComponent()
}